@function pxToRem($val) {
    @return $val/100 + rem;
}

/deep/  .msgModal {
    // .ivu-modal-header {
    //     height: 50px;
    //     background: #00B1FB;
    //     //text-align: center;

    //     .ivu-modal-header-inner {
    //         color: #fff;
    //     }
    // }

    // .ivu-modal-close {
    //     right: 13px !important;
    //     top: 15px !important;

    //     .ivu-icon-ios-close {
    //         color: #fff !important;
    //     }
    // }

    // .ivu-modal-body {
    //     padding: 10px 0 !important;
    // }

    .ivu-modal-footer {
        border-top: 1px solid #00B1FB;

        .footer {
            display: flex;
            justify-content: flex-end;
            align-items: center;

            .button {
                width: 60px;
                height: 30px;
                border-radius: 6px;
                text-align: center;
                line-height: 30px;
                font-size: 14px;
                font-family: Microsoft YaHei;
                font-weight: 400;
                margin-right: 15px;
                cursor: pointer;
                transition: all 0.5s ease-in-out;

                &.cancel {
                    background: #f3f3f3;
                    color: #00B1FB;

                    &:hover {
                        background-color: #00B1FB;
                        color: #f3f3f3;
                    }
                }

                &.submit {
                    background: #00B1FB;
                    color: #f3f3f3;

                    &:hover {
                        opacity: 0.7;
                    }
                }
            }
        }
    }
}

/deep/  .addModal {
    // .ivu-modal-header {
    //     width: 100%;
    //     height: 50px;
    //     background: #00B1FB;

    //     .ivu-modal-header-inner {
    //         color: #fff;
    //     }
    // }

    // .ivu-modal-close {
    //     right: 13px !important;
    //     top: 15px !important;
    //     .ivu-icon-ios-close {
    //         color: #fff !important;
    //     }
    // }

    // .ivu-modal-body {
    //     padding: 10px 0 !important;
    // }

    .button {
        position: relative;
        width: pxToRem(70);
        height: pxToRem(30);
        background: #f3f3f3;
        border-radius: pxToRem(6);
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: pxToRem(12);
        font-family: Source Han Sans CN;
        font-weight: 400;
        color: #070923;
        cursor: pointer;
        border: 1px solid #f3f3f3 ;
        box-sizing: border-box;
        &:hover {
            background: #070923;
            color: #f3f3f3;
        }
    }
    // .ivu-modal-footer {
    //     border-top: 1px solid #00B1FB;
    // }
    .footer {
        display: flex;
        justify-content: flex-end;
        align-items: center;

        .button {
            width: 60px;
            height: 30px;
            border-radius: 6px;
            text-align: center;
            line-height: 30px;
            font-size: 14px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            margin-right: 15px;
            cursor: pointer;
            transition: all 0.5s ease-in-out;

            &.cancel {
                background: #f3f3f3;
                color: #00B1FB;

                &:hover {
                    background-color: #00B1FB;
                    color: #f3f3f3;
                }
            }

            &.submit {
                background: #00B1FB;
                color: #f3f3f3;

                &:hover {
                    opacity: 0.7;
                }
            }
        }
    }
}

/deep/  .addMsg {
    width: 100%;

    .ivu-input:hover {
        border-color: #00B1FB !important;
    }
    .ivu-cascader:hover .ivu-input {
        border-color: #00B1FB !important;
    }

    .ivu-cascader .ivu-input:focus {
        border-color: #00B1FB !important;
    }

    .ivu-select-visible .ivu-select-selection {
        border-color: #00B1FB !important;
    }

    .ivu-tabs-tab:hover{
        color: #00B1FB !important;
    }
    .ivu-tabs-ink-bar {
        background-color: #00B1FB !important;
    }

    .ivu-tabs-nav .ivu-tabs-tab-active {
        color: #00B1FB !important;
    }
    .ivu-page-item:hover{
        a{
            color: #32585A!important;
        }
    }
    .ivu-page-item-active {
        border-color: transparent !important;
        background-color: #E7E5E5!important;
        a{
            color: #32585A!important;
        }
    }

    .ivu-page-options-elevator input:focus {
        border-color: #00B1FB !important;
    }

    .ivu-select-visible .ivu-select-selection {
        border-color: #00B1FB !important;
    }

    .ivu-select-selection:hover {
        border-color: #00B1FB !important;
    }
    .ivu-inputsearh-icon{
        border: none;
        background-color: #F8F7F9 !important;
        height: pxToRem(40);
    }
    .el-textarea textarea {
        border: 1px solid transparent !important;
        background-color: #F8F7F9;
    }
    .el-textarea textarea:focus {
        border-color: transparent !important;
    }
    .ivu-radio-checked .ivu-radio-inner{
        border-color: rgba(9, 7, 35, 0.7);
    }
    .ivu-checkbox-checked .ivu-checkbox-inner{
        background-color: rgba(9, 7, 35, 0.7);
        border-color: rgba(9, 7, 35, 0.7);
    }
    .ivu-radio-checked .ivu-radio-inner:after{
        background-color:#070923;
    }
    .ivu-select-selection{
        border: none;
        background-color: #F8F7F9 !important;
        height: 40px;
        >div{
            height: 40px;
            .ivu-select-selected-value{
                height: 40px !important;
                line-height: 40px!important;
            }
            .ivu-select-placeholder{
                height: 40px !important;
                line-height: 40px!important;
            }
        }
    }
    .vue-treeselect__control{
        border: none;
        background-color: #F8F7F9 !important;
        height: 40px;
        line-height: 40px!important;
        .vue-treeselect__menu{
            background-color: #F8F7F9 !important;
        }
    }

    h2 {
        width: 98%;
        height: 30px;
        line-height: 30px;
        background: #f3f3f3;
        margin: 0 auto;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding-left: 17px;
        box-sizing: border-box;
        color: #00B1FB;

        .bc {
            width: 5px;
            height: 15px;
            background: #00B1FB;
            margin-right: 12px;
        }

        .add {
            cursor: pointer;
            margin-left: 12px;
            font-size: 20px;
        }
        .edit{
            cursor: pointer;
            margin-left: 12px;
        }
    }

    .info {
        width: 100%;
        position: relative;
        .infoBox {
            width: 100%;
            padding: 0 50px;
            box-sizing: border-box;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            margin-top: 10px;

            .left {
                width: 70%;

                .list {
                    width: 100%;
                    display: flex;
                    justify-content: flex-start;
                    align-items: center;
                    margin-top: 15px;

                    .item {
                        position: relative;
                        width: 55%;
                        display: flex;
                        justify-content: flex-start;
                        align-items: center;

                        .span {
                            &:first-of-type {
                                width: 90px;
                                font-size: 12px;
                                font-family: Microsoft YaHei;
                                font-weight: 400;
                                color: #181818;
                            }

                            &:last-of-type {
                                font-size: 12px;
                                font-family: Microsoft YaHei;
                                font-weight: 400;
                                color: #58595A;
                            }
                        }

                    }

                    .tip {
                        position: absolute;
                        left: -8px;
                        top: 8px;
                        color: red !important;
                    }
                }
            }

            .right {
                position: relative;
                margin-left: 3%;

                .imgList {
                    position: relative;
                    display: flex;
                    justify-content: flex-start;
                    border: 1px solid #089082;
                    border-radius: 3px;
                    padding: 16px;
                    padding-bottom: 32px;
                    box-sizing: border-box;

                    .img_text {
                        position: absolute;
                        bottom: 10px;
                        left: 50%;
                        transform: translateX(-50%);
                        font-size: 14px;
                        font-family: Microsoft YaHei;
                        font-weight: 400;
                        color: #585858;
                    }

                    .img_left {
                        position: relative;

                        .delImg {
                            position: absolute;
                            right: -5px;
                            top: -5px;
                            width: 20px;
                            height: 20px;
                            cursor: pointer;
                        }

                        margin-right: 8px;

                        .avatar-uploader .el-upload {
                            border-radius: 2px;
                            cursor: pointer;
                            position: relative;
                            overflow: hidden;
                            box-sizing: border-box;
                            background-color: #EEEEEE;
                        }

                        .avatar-uploader .el-upload:hover {
                            border-color: #1891FF;
                        }

                        .avatar-uploader-icon {
                            font-size: 28px;
                            color: #D2D2D2;
                            width: 110px;
                            height: 110px;
                            line-height: 110px;
                            text-align: center;
                        }

                        .avatar {
                            width: 110px;
                            height: 110px;
                            display: block;
                        }
                    }

                    .img_right {
                        .img_right_item {
                            position: relative;

                            .delImg {
                                position: absolute;
                                right: -5px;
                                top: -5px;
                                width: 15px;
                                height: 15px;
                                cursor: pointer;
                            }
                        }

                        .avatar-uploader .el-upload {
                            border-radius: 2px;
                            cursor: pointer;
                            position: relative;
                            overflow: hidden;
                            box-sizing: border-box;
                            background-color: #EEEEEE;
                            margin-bottom: 5px;
                        }

                        .avatar-uploader .el-upload:hover {
                            border-color: #1891FF;
                        }

                        .avatar-uploader-icon {
                            font-size: 28px;
                            color: #D2D2D2;
                            width: 50px;
                            height: 50px;
                            line-height: 50px;
                            text-align: center;
                        }

                        .avatar {
                            width: 50px;
                            height: 50px;
                            display: block;
                        }
                    }
                }
            }
        }
    }
    .userInfo {
        .list {
            display: flex;
            justify-content: center;
            align-items: center;
            .item {
                position: relative;
                display: flex;
                justify-content: flex-start;
                align-items: center;
                margin: 10px;
                .name {
                    width: 90px;
                    font-size: 12px;
                    font-family: Microsoft YaHei;
                    font-weight: 400;
                    color: #181818;
                }
                .sub{
                    width: 300px;
                    text-overflow: ellipsis;
                    overflow: hidden;
                    white-space: nowrap;
                }

                .ivu-input {
                    border: none;
                    background-color: #F8F7F9 !important;
                    height: 40px;
                }
                .ivu-icon-ios-search{
                    height: pxToRem(40);
                    line-height: pxToRem(40);
                    font-size: pxToRem(16);
                    font-weight: 700;
                }

                .tip {
                    position: absolute;
                    top: 5px;
                    left: -10px;
                    width: 8px;
                    height: 8px;
                    color: red;
                }
            }
        }
    }
    .roleList{
        width: 780px;
        margin: auto;
        padding: 10px;
        box-sizing: border-box;
    }
    .tableBox{
        width: 98%;
        .el-table--border::after, .el-table--group::after, .el-table::before{
            display: none;
        }
        .el-table{
            color: #333333;
            font-family: MicrosoftYaHei;
            font-size: pxToRem(14);
            td,
            th.is-leaf{
                border-bottom: none;
            }
            tr{
                border: none;
            }
            thead tr{
                border-radius: pxToRem(6) !important;
                background-color: #E7E5E5 !important;
                th{
                    padding: pxToRem(12) 0;
                    color: #333333;
                    font-size: pxToRem(14);
                    font-family: Source Han Sans CN;
                    background-color: transparent !important;
                }
            }
            .p{
                display: flex;
                justify-content: flex-start;
                align-items: center;
            }
        }
        .el-table__row{
            background-color: #fff;
            cursor: pointer;
            font-size: pxToRem(12);
            font-family: Source Han Sans CN;
            font-weight: 400;
            color: #32585A;
            border-bottom: pxToRem(1) solid #E1E1E1;
            &.el-table__row--level-1,
            &.el-table__row--level-2{
                background-color: #FAFCFC !important;
            }
            td{
                padding: pxToRem(8) 0;
            }
        }
        .el-table--striped .el-table__body tr.el-table__row--striped td{
            background-color: #EBEBEB ;
            cursor: pointer;
        }
        .ivu-input{
            border: none;
            background-color: #F8F7F9 !important;
            height: 40px;
            &:focus{
                outline: none !important;
                border-color: transparent !important;
            }

        }
    }
    .uploadImg{
        width: 400px;
        height: 200px;
        margin: 20px auto;
        img{
            display: block;
            width: 100%;
            height: 100%;
        }
    }
    .flightBox{
        display: flex;
        justify-content: space-between;

        .left{
            width: 350px;
            border-right: 1px solid #00B1FB;
            h2{
                width: 98%;
                height: 30px;
                line-height: 30px;
                background: #f3f3f3;
                margin: 0 auto;
                display: flex;
                justify-content: flex-start;
                align-items: center;
                padding-left: 17px;
                box-sizing: border-box;
                color: #00B1FB;
            }
            .infoBox{
                width: 250px;
                margin: 0 auto;
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                align-items: center;
            }
        }
        .right{
            width: 450px;
            h2{
                width: 98%;
                height: 30px;
                line-height: 30px;
                background: #f3f3f3;
                margin: 0 auto;
                display: flex;
                justify-content: flex-start;
                align-items: center;
                padding-left: 17px;
                box-sizing: border-box;
                color: #00B1FB;
            }
            .list {
                display: flex;
                justify-content: center;
                align-items: center;
                .item {
                    position: relative;
                    display: flex;
                    justify-content: flex-start;
                    align-items: center;
                    margin: 10px;
                    .name {
                        width: 90px;
                        font-size: 12px;
                        font-family: Microsoft YaHei;
                        font-weight: 400;
                        color: #181818;
                    }
                    .sub{
                        width: 300px;
                        text-overflow: ellipsis;
                        overflow: hidden;
                        white-space: nowrap;
                    }

                    .ivu-input {
                        border: none;
                        background-color: #F8F7F9 !important;
                        height: 40px;
                    }

                    .tip {
                        position: absolute;
                        top: 5px;
                        left: -10px;
                        width: 8px;
                        height: 8px;
                        color: red;
                    }
                }
                .upload-demo{
                    position: relative;
                    width: 390px;
                    height: 100px;
                    background: #ccc;
                    border-radius: 5px;
                    cursor: pointer;
                    &.isHide{
                        cursor: not-allowed!important;
                        .el-upload{
                            cursor: not-allowed!important;
                        }
                    }
                    #minIoFile,
                    #minIoFiles{
                        position: absolute;
                        opacity: 0;
                    }
                    .upload{
                        width:390px;
                        height: 100px;
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        align-items: center;
                        .tag{
                            color: #089082;
                        }
                    }
                }
                .tags{
                    width: 390px;
                    height: 150px;
                    overflow-y: auto;
                    &::-webkit-scrollbar {
                        width: 6px;
                    }
                    /*滚动槽*/
                    &::-webkit-scrollbar-track {
                        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
                box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
                        border-radius: 10px;
                    }
                    /* 滚动条滑块 */
                    &::-webkit-scrollbar-thumb {
                        border-radius: 10px;
                        background: rgba(0, 0, 0, 0.1);
                        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
                box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
                    }
                    &::-webkit-scrollbar-thumb:window-inactive {
                        background: rgba(255, 0, 0, 0.1);
                    }
                    p{
                        width: 390px;
                        height: 50px;
                        border-radius: 5px;
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        padding: 0 10px;
                        background: #EAF8F7;
                        margin-bottom: 10px;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                        span{
                            &:first-of-type{
                                width: 95%;
                                overflow: hidden;
                                text-overflow: ellipsis;
                                white-space: nowrap;
                            }
                        }
                        .close{
                            color:#089082;
                            cursor: pointer;
                            font-size: 16px;
                        }
                    }
                }
                .slider{
                    width: 390px;
                    height: 30px;
                    display: flex;
                    justify-content: center;
                    align-content: center;
                }

            }
        }
    }
    .off-btn{
        &:hover{
            opacity: 0.8;
            cursor: pointer;
        }
        .icon{
            display: block;
            width: 50px;
            height: 50px;
            margin: 40px auto;
            margin-bottom: 15px;
        }
        .text{
            width: 100%;
            font-size: 14px;
            font-family: Source Han Sans CN;
            font-weight: 400;
            color: #089082;
            text-align: center;
        }

    }

}

/deep/  .msgBox{
    width: 100%;
    h2 {
        width: 98%;
        height: 30px;
        line-height: 30px;
        background: #f3f3f3;
        margin: 0 auto;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding-left: 17px;
        box-sizing: border-box;
        color: #00B1FB;

        .bc {
            width: 5px;
            height: 15px;
            background: #00B1FB;
            margin-right: 12px;
        }

        .add {
            cursor: pointer;
            margin-left: 12px;
            font-size: 20px;
        }
        .edit{
            cursor: pointer;
            margin-left: 12px;
        }
    }
    .info{
        width: 100%;
        position: relative;
        .infoBox{
            width: 100%;
            padding: 0 50px;
            box-sizing: border-box;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            .left{
                width: 70%;
                .list{
                    width: 100%;
                    display: flex;
                    justify-content: flex-start;
                    align-items: center;
                    margin-top: 15px;
                    &.inputMsg{
                        .item{
                            align-items: flex-start;
                            .el-textarea__inner{
                                //border: 1px solid #005CFF;
                                border: none;
                                background-color: #F8F7F9 !important;
                            }
                        }
                    }
                    .item{
                        position: relative;
                        width: 55%;
                        display: flex;
                        justify-content: flex-start;
                        align-items: center;
                        &.operatorList{
                            flex: 1;
                        }
                        .span{
                            &:first-of-type{
                                width: 90px;
                                font-size: 12px;
                                font-family: Microsoft YaHei;
                                font-weight: 400;
                                color: #181818;
                            }
                            &:last-of-type{
                                font-size: 12px;
                                font-family: Microsoft YaHei;
                                font-weight: 400;
                                color: #58595A;
                            }
                        }
                    }
                    .tip{
                        position: absolute;
                        left: -8px;
                        top:0;
                        color: red !important;
                    }
                    .edit{
                        position: absolute;
                        right: -25px;
                        top:0px;
                        color: #088F81 !important;
                        font-size: 20px;
                        cursor: pointer;

                    }
                }
            }
            .right{
                position: relative;
                margin-left: 3%;
                .imgList{
                    position: relative;
                    display: flex;
                    justify-content: flex-start;
                    border: 1px solid #005CFF;
                    border-radius: 3px;
                    padding: 16px;
                    padding-bottom: 32px;
                    box-sizing: border-box;

                    .img_text{
                        position: absolute;
                        bottom: 10px;
                        left: 50%;
                        transform: translateX(-50%);
                        font-size: 14px;
                        font-family: Microsoft YaHei;
                        font-weight: 400;
                        color: #585858;
                    }
                    .img_left{
                        margin-right: 8px;
                        .avatar-uploader .el-upload {
                            border-radius: 2px;
                            cursor: pointer;
                            position: relative;
                            overflow: hidden;
                            box-sizing: border-box;
                            background-color: #EEEEEE;
                        }
                        .avatar-uploader .el-upload:hover {
                            border-color: #1891FF;
                        }
                        .avatar-uploader-icon {
                            font-size: 28px;
                            color: #D2D2D2;
                            width: 110px;
                            height: 110px;
                            line-height: 110px;
                            text-align: center;
                        }
                        .avatar {
                            width: 110px;
                            height: 110px;
                            display: block;
                        }
                    }
                    .img_right{
                        .avatar-uploader .el-upload {
                            border-radius: 2px;
                            cursor: pointer;
                            position: relative;
                            overflow: hidden;
                            box-sizing: border-box;
                            background-color: #EEEEEE;
                            margin-bottom: 5px;
                        }
                        .avatar-uploader .el-upload:hover {
                            border-color: #1891FF;
                        }
                        .avatar-uploader-icon {
                            font-size: 28px;
                            color: #D2D2D2;
                            width: 50px;
                            height: 50px;
                            line-height: 50px;
                            text-align: center;
                        }
                        .avatar {
                            width: 50px;
                            height: 50px;
                            display: block;
                        }
                    }
                }
            }
        }
    }
    .operEmpList{
        padding: 15px 50px;
        box-sizing: border-box;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        .item{
            position: relative;
            width: 290px;
            height: 150px;
            background: #FFFFFF;
            border: 1px solid #005CFF;
            border-radius: 4px;
            padding: 10px 13px;
            box-sizing: border-box;
            margin-right: 15px;
            &:last-of-type{
                margin-right: 0;
            }
            .item_close{
                position: absolute;
                right: -10px;
                top: -10px;
                cursor: pointer;
            }
            .item_emp{
                display: flex;
                justify-content: flex-start;
                align-items: center;
                margin-bottom: 15px;
                span{
                    &:first-of-type{
                        width: 60px;
                    }
                }
            }
        }
    }
    .el-textarea textarea {
        border: 1px solid transparent !important;
    }

    .el-textarea textarea:hover {
        border-color: #00B1FB !important;
    }
    .ivu-input{
        border: none;
        background-color: #F8F7F9 !important;
        height: pxToRem(40);
    }
    .ivu-icon-ios-search{
        height: pxToRem(40);
        line-height: pxToRem(40);
        font-size: pxToRem(16);
        font-weight: 700;
    }
    .ivu-select-selection{
        height: pxToRem(40);
        border: none;
        .ivu-select-selected-value{
            height: pxToRem(40);
            background: #F8F7F9;
            border-radius: pxToRem(6);
            line-height: pxToRem(40);
            font-size: pxToRem(12);
            font-family: Source Han Sans CN;
            font-weight: 400;
            color: #32585A;
        }
        .ivu-select-placeholder{
            height: pxToRem(40);
            background: #F8F7F9;
            border-radius: pxToRem(6);
            line-height: pxToRem(40);
            font-size: pxToRem(12);
            font-family: Source Han Sans CN;
            font-weight: 400;
            color: #32585A;
        }
    }
    .ivu-radio-checked .ivu-radio-inner{
        border-color: rgba(9, 7, 35, 0.7);
    }
    .ivu-checkbox-checked .ivu-checkbox-inner{
        background-color: rgba(9, 7, 35, 0.7);
        border-color: rgba(9, 7, 35, 0.7);
    }
    .ivu-radio-checked .ivu-radio-inner:after{
        background-color:#070923;
    }
    .imgBox{
        .el-upload {
            border-radius: 2px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            box-sizing: border-box;
            background-color: #F8F7F9 !important;
            margin-bottom: 5px;
        }
        .el-upload:hover {
            border-color: #1891FF;
        }
        .avatar-uploader-icon {
            font-size: 28px;
            color: #D2D2D2;
            width: 50px;
            height: 50px;
            line-height: 50px;
            text-align: center;
        }
        .avatar {
            width: 50px;
            height: 50px;
            display: block;
        }
    }

}
/deep/.addMsg .imgBox{
    .el-upload-list__item {
        transition: none !important;
    }
    .imgBox{

        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
    }
    .avatar-uploader{
        flex: 1;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .el-upload--picture-card{
        width: 50px;
        height: 50px;
        border: none;
        border-radius: 2px;
        cursor: pointer;
        position: relative;
    }
    .avatar-uploader .el-upload:hover {
        border-color: #1891FF;
    }
    .avatar-uploader-icon {
        font-size: 28px;
        color: #F8F7F9;
        width: 80px;
        height: 80px;
        line-height: 80px;
        text-align: center;
    }
    .el-upload--picture-card{
        width: 80px;
        height: 80px;
        line-height: 80px !important;
        background-color: #F8F7F9 !important;
    }
    .avatar {
        width: 80px;
        height: 80px;
        display: block;
    }
    .el-upload-list--picture-card .el-upload-list__item {
        width: 80px;
        height: 80px;
        border-radius: 2px;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        box-sizing: border-box;
        background-color: #EEEEEE;
        border: none;
        margin-right: 20px;
    }
}
.hideAdd {
    /deep/ .el-upload--picture-card {
        display: none;
    }
}
